<!-- 头部 -->
<template>
  <div class="head-container">
    <div class="icon" @click="Jump">
        <Icon type="rightarrow"></Icon>
        返回
    </div>
    <div class="title">
        <p>修改密码</p>
    </div>
  </div>
</template>

<script setup>
import Icon from "@/components/Icon/index.vue"
import {useRouter} from "vue-router"
const router = useRouter()
function Jump(){
    router.go(-1)
}
</script>

<style lang="less" scoped>
@import "@/styles/var.less";
.head-container{
    width: 100%;
    height: 60px;
    line-height: 60px;
    padding: 0 2em;
    position: relative;
    .icon{
        width: 8%;
        cursor: pointer;
        font-size: 1.3em;
        color: @gray;
        &:hover{
            color: @white;
        }
    }
    .title{
        font-size: 2em;
        font-weight:bold;
        position: absolute;
        left: 50%;
        top: 0;
        transform: translate(-50%,0%);
        
    }
}
</style>